home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 25 / CU Amiga Magazine's Super CD-ROM 25 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-08].iso / CUCD / Programming / ixemul / sdk / man / cat4 / udp.0 < prev    next >
Encoding:
Text File  |  1998-06-15  |  2.6 KB  |  61 lines

  1.  
  2. UDP(4)                     UNIX Programmer's Manual                     UDP(4)
  3.  
  4. NNAAMMEE
  5.      uuddpp - Internet User Datagram Protocol
  6.  
  7. SSYYNNOOPPSSIISS
  8.      ##iinncclluuddee <<ssyyss//ssoocckkeett..hh>>
  9.      ##iinncclluuddee <<nneettiinneett//iinn..hh>>
  10.  
  11.      _i_n_t
  12.      ssoocckkeett(_A_F___I_N_E_T, _S_O_C_K___D_G_R_A_M, _0)
  13.  
  14. DDEESSCCRRIIPPTTIIOONN
  15.      UDP is a simple, unreliable datagram protocol which is used to support
  16.      the SOCK_DGRAM abstraction for the Internet protocol family.  UDP sockets
  17.      are connectionless, and are normally used with the sendto and recvfrom
  18.      calls, though the connect(2) call may also be used to fix the destination
  19.      for future packets (in which case the recv(2) or read(2) and send(2) or
  20.      write(2) system calls may be used).
  21.  
  22.      UDP address formats are identical to those used by TCP. In particular UDP
  23.      provides a port identifier in addition to the normal Internet address
  24.      format.  Note that the UDP port space is separate from the TCP port space
  25.      (i.e. a UDP port may not be ``connected'' to a TCP port).  In addition
  26.      broadcast packets may be sent (assuming the underlying network supports
  27.      this) by using a reserved ``broadcast address''; this address is network
  28.      interface dependent.
  29.  
  30.      Options at the IP transport level may be used with UDP; see ip(4).
  31.  
  32. DDIIAAGGNNOOSSTTIICCSS
  33.      A socket operation may fail with one of the following errors returned:
  34.  
  35.      [EISCONN]        when trying to establish a connection on a socket which
  36.                       already has one, or when trying to send a datagram with
  37.                       the destination address specified and the socket is al-
  38.                       ready connected;
  39.  
  40.      [ENOTCONN]       when trying to send a datagram, but no destination ad-
  41.                       dress is specified, and the socket hasn't been connect-
  42.                       ed;
  43.  
  44.      [ENOBUFS]        when the system runs out of memory for an internal data
  45.                       structure;
  46.  
  47.      [EADDRINUSE]     when an attempt is made to create a socket with a port
  48.                       which has already been allocated;
  49.  
  50.      [EADDRNOTAVAIL]  when an attempt is made to create a socket with a net-
  51.                       work address for which no network interface exists.
  52.  
  53. SSEEEE AALLSSOO
  54.      getsockopt(2),  recv(2),  send(2),  socket(2),  intro(4),  inet(4),
  55.      ip(4)
  56.  
  57. HHIISSTTOORRYY
  58.      The uuddpp protocol appeared in 4.2BSD.
  59.  
  60. 4.2 Berkeley Distribution        June 5, 1993                                1
  61.